Skip to main content

ClearFieldButton

Renders a button which clears the fields specified in a "field" prop on a click.
<ClearFieldButton field="name" label="Clear name" />
ClearFieldButtonProps
ClearFieldButtonProps
Intersection of
SimpleRelativeSingleFieldProps
SimpleRelativeSingleFieldProps
SimpleRelativeSingleFieldProxyProps
SimpleRelativeSingleFieldProxyProps
Intersection of
SimpleRelativeSingleFieldProxyFieldContainerProps
SimpleRelativeSingleFieldProxyFieldContainerProps
Omit
FieldContainerProps
FieldContainerProps
Intersection of
FieldContainerProps
description
React.ReactNode
direction
StackProps["direction"]
display
| "inline"| "block"
evenly
StackProps["evenly"]
gap
StackProps["gap"]
horizontal
StackProps["horizontal"]
label*
React.ReactNode
labelDescription
React.ReactNode
labelPosition
FieldContainerLabelPosition
required
boolean
reverse
StackProps["reverse"]
size
Size
useLabelElement
boolean
width
| "column"| "fluid"| "none"
ErrorListProps
ErrorListProps
errors
FieldErrors
SugaredRelativeSingleField
SugaredRelativeSingleField
Intersection of
UnsugarableRelativeSingleField
UnsugarableRelativeSingleField
UnsugarableLeafField
UnsugarableLeafField
Intersection of
UnsugarableFieldEventListeners
UnsugarableFieldEventListeners
UnsugarableFieldEventListeners
onBeforeUpdate
FieldEventListenerValue<"beforeUpdate", FieldValue>
onInitialize
FieldEventListenerValue<"initialize", FieldValue>
onUpdate
FieldEventListenerValue<"update", FieldValue>
UnsugarableLeafField
defaultValue
OptionallyVariableFieldValue
isNonbearing
boolean
SugaredRelativeSingleField
field*
| string| SugarableRelativeSingleField
SimpleRelativeSingleFieldProxyExtraProps
SimpleRelativeSingleFieldProxyExtraProps
SimpleRelativeSingleFieldProxyExtraProps
className
string
containerClassName
string
containerStyle
React.CSSProperties
style
React.CSSProperties
suppressErrors
boolean
ClearFieldButtonInnerPublicProps
ClearFieldButtonInnerPublicProps
ButtonProps
ButtonProps
Intersection of
ButtonOwnProps
ButtonOwnProps
active
boolean
align
| "center"| "stretch"| "end"| "start"
bland
boolean
borderRadius
| boolean| "padding"| "full"| "gap"| "gutter"
children
React.ReactNode
disabled
boolean
display
| "inline"| "block"
distinction
| "seamless"| "primary"| "toned"| "outlined"| "inverse"| "default"
elevated
boolean
elevation
ButtonElevation
flow
ButtonFlow
inset
| boolean| "padding"| "large"| "gap"| "gutter"
intent
Intent
justification
Justification
justify
| "center"| "space-around"| "space-between"| "space-evenly"| "end"| "start"
loading
boolean
padding
| boolean| "padding"| "gap"| "gutter"| DeprecatedButtonPadding
scheme
Scheme
size
| "small"| "default"| "medium"| "large"
square
boolean
Omit
ButtonBasedProps
ButtonBasedProps
about
string
accessKey
string
aria-activedescendant
string
aria-atomic
Booleanish
aria-autocomplete
| "list"| "none"| "inline"| "both"
aria-busy
Booleanish
aria-checked
| boolean| "true"| "false"| "mixed"
aria-colcount
number
aria-colindex
number
aria-colspan
number
aria-controls
string
aria-current
| boolean| "time"| "page"| "true"| "false"| "step"| "location"| "date"
aria-describedby
string
aria-details
string
aria-disabled
Booleanish
aria-dropeffect
| "link"| "copy"| "none"| "execute"| "move"| "popup"
aria-errormessage
string
aria-expanded
Booleanish
aria-flowto
string
aria-grabbed
Booleanish
aria-haspopup
| boolean| "dialog"| "menu"| "true"| "false"| "grid"| "listbox"| "tree"
aria-hidden
Booleanish
aria-invalid
| boolean| "true"| "false"| "grammar"| "spelling"
aria-keyshortcuts
string
aria-label
string
aria-labelledby
string
aria-level
number
aria-live
| "off"| "assertive"| "polite"
aria-modal
Booleanish
aria-multiline
Booleanish
aria-multiselectable
Booleanish
aria-orientation
| "horizontal"| "vertical"
aria-owns
string
aria-placeholder
string
aria-posinset
number
aria-pressed
| boolean| "true"| "false"| "mixed"
aria-readonly
Booleanish
aria-relevant
| "text"| "additions"| "additions removals"| "additions text"| "all"| "removals"| "removals additions"| "removals text"| "text additions"| "text removals"
aria-required
Booleanish
aria-roledescription
string
aria-rowcount
number
aria-rowindex
number
aria-rowspan
number
aria-selected
Booleanish
aria-setsize
number
aria-sort
| "none"| "ascending"| "descending"| "other"
aria-valuemax
number
aria-valuemin
number
aria-valuenow
number
aria-valuetext
string
autoCapitalize
string
autoCorrect
string
autoFocus
boolean
autoSave
string
children
React.ReactNode
className
string
color
string
content
string
contentEditable
| Booleanish| "inherit"
contextMenu
string
dangerouslySetInnerHTML
datatype
string
defaultChecked
boolean
defaultValue
| string| number| string[]
dir
string
disabled
boolean
draggable
Booleanish
form
string
formAction
string
formEncType
string
formMethod
string
formNoValidate
boolean
formTarget
string
hidden
boolean
id
string
inlist
any
inputMode
| "search"| "text"| "none"| "tel"| "url"| "email"| "numeric"| "decimal"
is
string
itemID
string
itemProp
string
itemRef
string
itemScope
boolean
itemType
string
lang
string
name
string
nonce
string
onAbort
React.ReactEventHandler<HTMLButtonElement>
onAbortCapture
React.ReactEventHandler<HTMLButtonElement>
onAnimationEnd
React.AnimationEventHandler<HTMLButtonElement>
onAnimationEndCapture
React.AnimationEventHandler<HTMLButtonElement>
onAnimationIteration
React.AnimationEventHandler<HTMLButtonElement>
onAnimationIterationCapture
React.AnimationEventHandler<HTMLButtonElement>
onAnimationStart
React.AnimationEventHandler<HTMLButtonElement>
onAnimationStartCapture
React.AnimationEventHandler<HTMLButtonElement>
onAuxClick
React.MouseEventHandler<HTMLButtonElement>
onAuxClickCapture
React.MouseEventHandler<HTMLButtonElement>
onBeforeInput
React.FormEventHandler<HTMLButtonElement>
onBeforeInputCapture
React.FormEventHandler<HTMLButtonElement>
onBlur
React.FocusEventHandler<HTMLButtonElement>
onBlurCapture
React.FocusEventHandler<HTMLButtonElement>
onCanPlay
React.ReactEventHandler<HTMLButtonElement>
onCanPlayCapture
React.ReactEventHandler<HTMLButtonElement>
onCanPlayThrough
React.ReactEventHandler<HTMLButtonElement>
onCanPlayThroughCapture
React.ReactEventHandler<HTMLButtonElement>
onChange
React.FormEventHandler<HTMLButtonElement>
onChangeCapture
React.FormEventHandler<HTMLButtonElement>
onClick
React.MouseEventHandler<HTMLButtonElement>
onClickCapture
React.MouseEventHandler<HTMLButtonElement>
onCompositionEnd
React.CompositionEventHandler<HTMLButtonElement>
onCompositionEndCapture
React.CompositionEventHandler<HTMLButtonElement>
onCompositionStart
React.CompositionEventHandler<HTMLButtonElement>
onCompositionStartCapture
React.CompositionEventHandler<HTMLButtonElement>
onCompositionUpdate
React.CompositionEventHandler<HTMLButtonElement>
onCompositionUpdateCapture
React.CompositionEventHandler<HTMLButtonElement>
onContextMenu
React.MouseEventHandler<HTMLButtonElement>
onContextMenuCapture
React.MouseEventHandler<HTMLButtonElement>
onCopy
React.ClipboardEventHandler<HTMLButtonElement>
onCopyCapture
React.ClipboardEventHandler<HTMLButtonElement>
onCut
React.ClipboardEventHandler<HTMLButtonElement>
onCutCapture
React.ClipboardEventHandler<HTMLButtonElement>
onDoubleClick
React.MouseEventHandler<HTMLButtonElement>
onDoubleClickCapture
React.MouseEventHandler<HTMLButtonElement>
onDrag
React.DragEventHandler<HTMLButtonElement>
onDragCapture
React.DragEventHandler<HTMLButtonElement>
onDragEnd
React.DragEventHandler<HTMLButtonElement>
onDragEndCapture
React.DragEventHandler<HTMLButtonElement>
onDragEnter
React.DragEventHandler<HTMLButtonElement>
onDragEnterCapture
React.DragEventHandler<HTMLButtonElement>
onDragExit
React.DragEventHandler<HTMLButtonElement>
onDragExitCapture
React.DragEventHandler<HTMLButtonElement>
onDragLeave
React.DragEventHandler<HTMLButtonElement>
onDragLeaveCapture
React.DragEventHandler<HTMLButtonElement>
onDragOver
React.DragEventHandler<HTMLButtonElement>
onDragOverCapture
React.DragEventHandler<HTMLButtonElement>
onDragStart
React.DragEventHandler<HTMLButtonElement>
onDragStartCapture
React.DragEventHandler<HTMLButtonElement>
onDrop
React.DragEventHandler<HTMLButtonElement>
onDropCapture
React.DragEventHandler<HTMLButtonElement>
onDurationChange
React.ReactEventHandler<HTMLButtonElement>
onDurationChangeCapture
React.ReactEventHandler<HTMLButtonElement>
onEmptied
React.ReactEventHandler<HTMLButtonElement>
onEmptiedCapture
React.ReactEventHandler<HTMLButtonElement>
onEncrypted
React.ReactEventHandler<HTMLButtonElement>
onEncryptedCapture
React.ReactEventHandler<HTMLButtonElement>
onEnded
React.ReactEventHandler<HTMLButtonElement>
onEndedCapture
React.ReactEventHandler<HTMLButtonElement>
onError
React.ReactEventHandler<HTMLButtonElement>
onErrorCapture
React.ReactEventHandler<HTMLButtonElement>
onFocus
React.FocusEventHandler<HTMLButtonElement>
onFocusCapture
React.FocusEventHandler<HTMLButtonElement>
onGotPointerCapture
React.PointerEventHandler<HTMLButtonElement>
onGotPointerCaptureCapture
React.PointerEventHandler<HTMLButtonElement>
onInput
React.FormEventHandler<HTMLButtonElement>
onInputCapture
React.FormEventHandler<HTMLButtonElement>
onInvalid
React.FormEventHandler<HTMLButtonElement>
onInvalidCapture
React.FormEventHandler<HTMLButtonElement>
onKeyDown
React.KeyboardEventHandler<HTMLButtonElement>
onKeyDownCapture
React.KeyboardEventHandler<HTMLButtonElement>
onKeyPress
React.KeyboardEventHandler<HTMLButtonElement>
onKeyPressCapture
React.KeyboardEventHandler<HTMLButtonElement>
onKeyUp
React.KeyboardEventHandler<HTMLButtonElement>
onKeyUpCapture
React.KeyboardEventHandler<HTMLButtonElement>
onLoad
React.ReactEventHandler<HTMLButtonElement>
onLoadCapture
React.ReactEventHandler<HTMLButtonElement>
onLoadStart
React.ReactEventHandler<HTMLButtonElement>
onLoadStartCapture
React.ReactEventHandler<HTMLButtonElement>
onLoadedData
React.ReactEventHandler<HTMLButtonElement>
onLoadedDataCapture
React.ReactEventHandler<HTMLButtonElement>
onLoadedMetadata
React.ReactEventHandler<HTMLButtonElement>
onLoadedMetadataCapture
React.ReactEventHandler<HTMLButtonElement>
onLostPointerCapture
React.PointerEventHandler<HTMLButtonElement>
onLostPointerCaptureCapture
React.PointerEventHandler<HTMLButtonElement>
onMouseDown
React.MouseEventHandler<HTMLButtonElement>
onMouseDownCapture
React.MouseEventHandler<HTMLButtonElement>
onMouseEnter
React.MouseEventHandler<HTMLButtonElement>
onMouseLeave
React.MouseEventHandler<HTMLButtonElement>
onMouseMove
React.MouseEventHandler<HTMLButtonElement>
onMouseMoveCapture
React.MouseEventHandler<HTMLButtonElement>
onMouseOut
React.MouseEventHandler<HTMLButtonElement>
onMouseOutCapture
React.MouseEventHandler<HTMLButtonElement>
onMouseOver
React.MouseEventHandler<HTMLButtonElement>
onMouseOverCapture
React.MouseEventHandler<HTMLButtonElement>
onMouseUp
React.MouseEventHandler<HTMLButtonElement>
onMouseUpCapture
React.MouseEventHandler<HTMLButtonElement>
onPaste
React.ClipboardEventHandler<HTMLButtonElement>
onPasteCapture
React.ClipboardEventHandler<HTMLButtonElement>
onPause
React.ReactEventHandler<HTMLButtonElement>
onPauseCapture
React.ReactEventHandler<HTMLButtonElement>
onPlay
React.ReactEventHandler<HTMLButtonElement>
onPlayCapture
React.ReactEventHandler<HTMLButtonElement>
onPlaying
React.ReactEventHandler<HTMLButtonElement>
onPlayingCapture
React.ReactEventHandler<HTMLButtonElement>
onPointerCancel
React.PointerEventHandler<HTMLButtonElement>
onPointerCancelCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerDown
React.PointerEventHandler<HTMLButtonElement>
onPointerDownCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerEnter
React.PointerEventHandler<HTMLButtonElement>
onPointerEnterCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerLeave
React.PointerEventHandler<HTMLButtonElement>
onPointerLeaveCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerMove
React.PointerEventHandler<HTMLButtonElement>
onPointerMoveCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerOut
React.PointerEventHandler<HTMLButtonElement>
onPointerOutCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerOver
React.PointerEventHandler<HTMLButtonElement>
onPointerOverCapture
React.PointerEventHandler<HTMLButtonElement>
onPointerUp
React.PointerEventHandler<HTMLButtonElement>
onPointerUpCapture
React.PointerEventHandler<HTMLButtonElement>
onProgress
React.ReactEventHandler<HTMLButtonElement>
onProgressCapture
React.ReactEventHandler<HTMLButtonElement>
onRateChange
React.ReactEventHandler<HTMLButtonElement>
onRateChangeCapture
React.ReactEventHandler<HTMLButtonElement>
onReset
React.FormEventHandler<HTMLButtonElement>
onResetCapture
React.FormEventHandler<HTMLButtonElement>
onResize
React.ReactEventHandler<HTMLButtonElement>
onResizeCapture
React.ReactEventHandler<HTMLButtonElement>
onScroll
React.UIEventHandler<HTMLButtonElement>
onScrollCapture
React.UIEventHandler<HTMLButtonElement>
onSeeked
React.ReactEventHandler<HTMLButtonElement>
onSeekedCapture
React.ReactEventHandler<HTMLButtonElement>
onSeeking
React.ReactEventHandler<HTMLButtonElement>
onSeekingCapture
React.ReactEventHandler<HTMLButtonElement>
onSelect
React.ReactEventHandler<HTMLButtonElement>
onSelectCapture
React.ReactEventHandler<HTMLButtonElement>
onStalled
React.ReactEventHandler<HTMLButtonElement>
onStalledCapture
React.ReactEventHandler<HTMLButtonElement>
onSubmit
React.FormEventHandler<HTMLButtonElement>
onSubmitCapture
React.FormEventHandler<HTMLButtonElement>
onSuspend
React.ReactEventHandler<HTMLButtonElement>
onSuspendCapture
React.ReactEventHandler<HTMLButtonElement>
onTimeUpdate
React.ReactEventHandler<HTMLButtonElement>
onTimeUpdateCapture
React.ReactEventHandler<HTMLButtonElement>
onTouchCancel
React.TouchEventHandler<HTMLButtonElement>
onTouchCancelCapture
React.TouchEventHandler<HTMLButtonElement>
onTouchEnd
React.TouchEventHandler<HTMLButtonElement>
onTouchEndCapture
React.TouchEventHandler<HTMLButtonElement>
onTouchMove
React.TouchEventHandler<HTMLButtonElement>
onTouchMoveCapture
React.TouchEventHandler<HTMLButtonElement>
onTouchStart
React.TouchEventHandler<HTMLButtonElement>
onTouchStartCapture
React.TouchEventHandler<HTMLButtonElement>
onTransitionEnd
React.TransitionEventHandler<HTMLButtonElement>
onTransitionEndCapture
React.TransitionEventHandler<HTMLButtonElement>
onVolumeChange
React.ReactEventHandler<HTMLButtonElement>
onVolumeChangeCapture
React.ReactEventHandler<HTMLButtonElement>
onWaiting
React.ReactEventHandler<HTMLButtonElement>
onWaitingCapture
React.ReactEventHandler<HTMLButtonElement>
onWheel
React.WheelEventHandler<HTMLButtonElement>
onWheelCapture
React.WheelEventHandler<HTMLButtonElement>
placeholder
string
prefix
string
property
string
radioGroup
string
rel
string
resource
string
results
number
rev
string
role
React.AriaRole
security
string
slot
string
spellCheck
Booleanish
style
React.CSSProperties
suppressContentEditableWarning
boolean
suppressHydrationWarning
boolean
tabIndex
number
title
string
translate
| "yes"| "no"
type
| "button"| "reset"| "submit"
typeof
string
unselectable
| "on"| "off"
value
| string| number| string[]
vocab
string